def F(a,b=20,*x,**y):
    s=a+b
    for i in x :
        s+=i
    for i in y.values():
        s+=i
    return s
Sum = F(2,10,1,2,3,4,c=10,d=20)
print(Sum)